package org.zs.miracle.common.base.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

import java.io.Serial;
import java.util.ArrayList;
import org.zs.miracle.common.validate.ValidateNotNullAndEmpty;

/**
 * 多个Long类型 id集合 DTO基类
 */
@Getter public class BaseManyLongIdDTO extends BaseDTO {
  
  @Serial
  private static final long serialVersionUID = 7165155487737319430L;
  
  public BaseManyLongIdDTO() {
  }
  
  public BaseManyLongIdDTO(ArrayList<Long> ids) {
    this.ids = ids;
  }
  
  /**
   * ids
   */
  @ValidateNotNullAndEmpty(message = "id集合不能为空")
  @Schema(name = "ids", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1092327965422,12398293009,1092323556]")
  private ArrayList<Long> ids = new ArrayList<>();
  
  public void setIds(ArrayList<Long> ids) {
    this.ids = ids;
  }
}